<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title><?php echo $this->html_meta['page_title']; ?></title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="keywords" content="<?php echo $this->html_meta['meta_keywords']; ?>" />
	<meta name="description" content="<?php echo trim(strip_tags($this->html_meta['meta_description'])); ?>" />
	<?php 
		if (array_key_exists('robots', $this->html_meta))
			echo '<meta name="robots" content="',$this->html_meta['robots'],'" />';
		
		//if(array_key_exists('canonical', $this->html_meta))
			//echo '<link rel="canonical" href="', $this->config->config['base_url'], $this->html_meta['canonical'],'" />';	 
		
		foreach ($this->css_head as $item) 
			echo '<link rel="stylesheet" type="text/css" href="', $this->config->config['public_url'], $item,'" />';
	
		foreach ($this->javascript_head as $item) 
			echo '<script type="text/javascript" src="',$this->config->config['public_url'], $item,'"></script>';
		
	?>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', '<?php echo $this->google_analytic_code;?>']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>

<body>
	<div class="header"><div class="wrapper"><?php echo $header; ?></div></div>
	<div class="main"><div class="feed-list rounded"><?php echo $content; ?></div></div>
	<div class="footer"><div class="wrapper"><?php echo $footer; ?></div></div>
</body>
</html>